import request from '../index.js'

//抽取商品信息
export const goodsInfo = data => {
    return request.get('/api/newCustomerVisitRecord/onSaleGoods', data)
}
//保存在售品项
export const addOrSave = data => {
    return request.post('/api/newCustomerVisitRecord/saveOnSaleGoods', data)
}
//获取已保存的在售品相商品列表
export const getSaved = data => {
    return request.get('/api/newCustomerVisitRecord/getSavedOnSaleGoods', data)
}
export const saveSalesOrder = data => {
    return request.post('/api/newAppCustomerVisitRecord/order', data)
}
//获取促销明细
export const giftPromotionDetail= data => {
    return request.get('/api/dropDown/basGoodsListForAddWithGiftPromotion/detail', data)
}
//获取空箱接口
export const paperGoodsWithEmptyBoxGoodsList= data => {
    return request.get('/api/dropDown/paperGoodsWithEmptyBoxGoodsList', data)
}
//获取销售单
export const getAppSalesOrder= data => {
    return request.get('/api/salesOrder/detail', data)
}
//获取回瓶回箱
export const wareReturnBottleBoxDetail= data => {
    return request.get('/api/wareReturnBottleBox/detail', data)
}

//销售单保存
export const saveAppSalesOrder= data => {
    return request.post('/api/appSalesOrder/addOrSave', data)
}
//销售报表
export const reportSaleStatistics= data => {
    return request.get('/api/reportSaleStatistics', data)
}
//回品回想保存
export const saveWareReturnBottleBox= data => {
    return request.post('/api/wareReturnBottleBox/addOrSave', data)
}
//查询发货单
export const wareSalesInvoice= data => {
    return request.get('/api/wareSalesInvoice', data)
}
//查询发货单明细
export const appWareSalesInvoiceDetail= data => {
    return request.get('/api/appWareSalesInvoice/detail', data)
}
//集货完成
export const submitWareSalesInvoice= data => {
    return request.post('/api/appWareSalesInvoice/submit', data)
}
//发货打标记
export const sendWareSalesInvoice= data => {
    return request.post('/api/appWareSalesInvoice/send', data)
}